/**
 * Copyright ecVision Limited (c) 2011. All rights reserved.
 * This software is proprietary to and embodies the confidential
 * technology of ecVision Limited.  Possession, use, or copying
 * of this software and media is authorized only pursuant to a
 * valid written license from ecVision or an authorized sublicensor.
 */
package com.hexb.permission.api;

import com.ecv.component.acl.Permission;
import com.ecv.component.acl.util.ACLException;
import com.ecv.component.profile.User;
import com.ecv.util.object.ICompositeObjectID;

/**
 * TODO Tommy: Change to the actual description of this class
 * @version   Revision History
 * <pre>
 * Author     Version       Date        Changes
 * Tommy Gan    1.0         2011-9-27     Created
 *
 * </pre>
 * @since B2B 1.0
 */

public interface IObjectPermission {
    
    Permission getObjectPermission(User user, ICompositeObjectID objectID) throws Exception;
    boolean isShareSupport();
    boolean checkAccess(User user, ICompositeObjectID object, int permission) throws Exception;
}
